<html>
	<head>
		<title>
			GMS - Tran Nguyen Khang - Introduction to Database
		</title>
	</head>
	<body>
			<!-- Vi trong lan load dau tien, tensinhvien chua co gia tri-->
			<{if ($tensinhvien)}>
				Hello <{$tensinhvien}> <!-- say hello to him/her neu tensinhvien duoc gan gia tri-->
			<{/if}>
			
			<!--form don gian, 1 combo box, 1 button, khi click vao button, say hello to what is selected in the combo box-->
			<form method="POST" action="<{$smarty.const.APPLICATION_URL}>home/xuli/" id="testForm" name="testForm">
				<select id="sinhvien_select" name="sinhvien_select">
					<!-- gia tri combo box duoc fetch tu mang sinh vien-->
					
					<!-- cau truc lenh foreach trong smarty-->
					<{foreach from=$sinhvien item=phantu}>				
						<option value="<{$phantu}>"><{$phantu}></option>			
					<{/foreach}>
					
				</select>
				<input type="submit" value="click here" id="submit" name="submit"/>
			</form>
			<!--khi submit, form se goi file homeController, function xuliAction-->
	</body>
</html>